package com.example.demo.TextTest;

/**
 * @author LHH
 * @date 2025/4/21
 */
public class MathTest {
    public static void main(String[] args) {
        double a = 17156.11;
        double b = 173574.999;

        double v = b / a;
        System.out.println(v);
        long roundSum = Math.round(v);
        System.out.println(roundSum);
        long oneCalculation = roundSum * 100;
        System.out.println(oneCalculation);
        double secondaryCalculation = oneCalculation / 100.0;
        System.out.println(secondaryCalculation);


        String strNum = String.format("%.2f", v);
        System.out.println(strNum);
    }
}
